package com.luowenbo.shortlink.separation.service;

import com.luowenbo.shortlink.separation.entity.UrlMap;

import java.time.OffsetDateTime;
import java.util.List;

public interface UrlMapService {

    int findColdDataCountInHot(OffsetDateTime time);

    int updateColdFlagInHot(OffsetDateTime time);

    int AtomicUpdateLockThread(String threadName, OffsetDateTime time);

    List<UrlMap> getDataByThread(String threadName);

    int insertColdDataToColdDB(List<UrlMap> data);

    int deleteColdDataInHotDB(String name);


}
